<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:o="http://omnifaces.org/ui" xmlns:p="http://primefaces.org/ui">

<ui:composition template="/layouts/default.xhtml">
	<ui:define name="body">
			<h:form id="anneeScolaireForm" style="padding-top: 15%">
				<p:panel styleClass="col-sm-4 col-md-offset-4" header="#{text['anneeScolaire.anneeScolaire']}">
					<div class="row">
							<div class="col-sm-8">
								<h:selectOneMenu id="anneeScolaire" styleClass="form-control"
									value="#{appController.anneeScolaire.id}" required="true">
									<f:selectItems value="#{appController.anneeScolaires}"
										var="anneeScolaire" itemLabel="#{anneeScolaire.anneeScolaire}"
										itemValue="#{anneeScolaire.id}" />
								</h:selectOneMenu>
								<p:message for="anneeScolaire" />
							</div>
							<div class="col-sm-3 form-group">
								<h:commandButton value="#{text['button.done']}" action="#{appController.doAnneeScolaire}" id="doAnneeScolaire" styleClass="btn btn-primary" />
							</div>
					</div>
				</p:panel>
			</h:form>
	</ui:define>
</ui:composition>
</html>